package com.dq.controller.user.centre;

import com.dq.controller.in.UserAccountStaffUserQuery;
import com.dq.domain.org.Org;
import com.dq.exception.customException.AdminException;
import com.dq.service.AllService;
import com.dq.vo.Vo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author luchangtong
 * @Date 2020/5/15 16:56
 */
@RestController
@RequestMapping("/sys/userAccountStaffUser/")
@Api(description = "提成记录")
public class SysUserAccountStaffUserController extends AllService {
    @PostMapping("list")
    @ApiOperation("收益明细列表")
    public Vo list(@RequestBody UserAccountStaffUserQuery userAccountStaffUserQuery) throws AdminException{

        //用于测试
        //userAccountStaffUserQuery.setOrgId(0L);


        return  userAccountStaffUserService.list(userAccountStaffUserQuery);
    }
}
